package com.fenquen.dfs.storage.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.net.InetSocketAddress;

@Component
public class DFSStorageConfig {
    @Value("${storage.path}")
    public String storagePath;

    @Value("${server.address}")
    public String serverAddress;

    @Value("${server.port}")
    public Integer serverPort;

    @Value("${udp.host}")
    public String udpHost;

    @Value("${udp.port}")
    public Integer udpPort;

    @Value("${multicast.host}")
    public String multicastHost;

    @Value("${multicast.port}")
    public Integer multicastPort;

    public InetSocketAddress multicastAddress;
}
